<template>
  <div class="content-box">
    <el-carousel :height="carouselProps.height">
      <el-carousel-item v-for="item in carouselProps.images" :key="item">
        <h3 class="small">
          <img class="carousel-img" :src="item" :style="getImgStyle()">
        </h3>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "SlideShow",
  props: {
    "carouselProps": Object
  },
  methods: {
    getImgStyle() {
      return {
        height: this.carouselProps.height,
      }
    }
  }

}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.carousel-img {
  width: 100%;
  cursor: pointer;
}

</style>
